//
//  NewsongCollectionViewCell.m
//  GSG
//
//  Created by gaox on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "NewsongCollectionViewCell.h"

@implementation NewsongCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
        self.myImageView.contentMode = UIViewContentModeScaleAspectFill;
        self.myImageView.autoresizesSubviews = YES;
        self.myImageView.clipsToBounds = YES;

        self.myImageView.layer.cornerRadius = 15;
        self.myImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"button.jpg"]];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height, self.contentView.frame.size.width, 40)];
        self.myLabel.numberOfLines = 2;
        [self.contentView addSubview:self.myLabel];
        [_myLabel release];
        
        
        
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    
    
}


@end
